#include "Base.h"
#include "LordServer.h"
#include "LordGame.h"
#include "LordServerPlayer.h"
#include "BaseProtocol.h"

char g_szServiceName[] = "LordServer";

int WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
	CLordServer *pServer = new CLordServer;
	if(pServer != NULL)
	{
		pServer->WinMain();
	}
	return 0;
}

CLordServer::CLordServer(void)
{
	m_nBotSvrPort = Port_LordBotServer;
}

CLordServer::~CLordServer(void)
{
}

BOOL CLordServer::OnInitialUpdate()
{
	if(!CGameServer::OnInitialUpdate())
		return FALSE;

	return TRUE;
}

CGame* CLordServer::CreateGame()
{
	return new("CLordGame", __FILE__, __LINE__) CLordGame;
}

CPlayer *CLordServer::CreatePlayer(int nOrigin)
{
	return new("CLordServerPlayer", __FILE__, __LINE__) CLordServerPlayer;
}
